/*
 * FormEditar.java
 *
 * Created on __DATE__, __TIME__
 */

package generadorDescriptores.forms;

import generadorDescriptores.Fachada;
import generadorDescriptores.forms.edition.PopUpOpenFile;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JColorChooser;
import javax.swing.JFileChooser;

public class FormEditar extends javax.swing.JDialog {

	Fachada fachada;
	String formName;

	/** Creates new form FormEditar */
	public FormEditar() {
		//super("Editar Descriptor");
		this.fachada = Fachada.getInstance();
		this.formName = "FormEditar";
		//this.fachada.addForm(this);
		initComponents();
		//this.setAlwaysOnTop(true);
		this.setLocationRelativeTo(null);
		this.setTitle("Editar Descriptor");
		
	}

	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jLabel1 = new javax.swing.JLabel();
		jSeparator1 = new javax.swing.JSeparator();
		jLabel2 = new javax.swing.JLabel();
		ButtonExaminar = new javax.swing.JButton();

		setDefaultCloseOperation(HIDE_ON_CLOSE);

		jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24));
		jLabel1.setText("Editar Descriptor XML");

		jLabel2
				.setText("En primer lugar debe seleccionar el archivo a editar:");

		ButtonExaminar.setText("Examinar");
		ButtonExaminar.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				ButtonExaminarMouseClicked(evt);
			}
		});

		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout
				.setHorizontalGroup(layout
						.createParallelGroup(
								org.jdesktop.layout.GroupLayout.LEADING)
						.add(
								layout
										.createSequentialGroup()
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.LEADING)
														.add(
																layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.add(
																				jSeparator1,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																				430,
																				org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
														.add(
																layout
																		.createSequentialGroup()
																		.add(
																				89,
																				89,
																				89)
																		.add(
																				jLabel1))
														.add(
																layout
																		.createSequentialGroup()
																		.add(
																				88,
																				88,
																				88)
																		.add(
																				jLabel2))
														.add(
																layout
																		.createSequentialGroup()
																		.add(
																				178,
																				178,
																				178)
																		.add(
																				ButtonExaminar)))
										.addContainerGap(
												org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));
		layout.setVerticalGroup(layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(
				layout.createSequentialGroup().addContainerGap().add(jLabel1)
						.add(18, 18, 18).add(jSeparator1,
								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
								10,
								org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(
								org.jdesktop.layout.LayoutStyle.UNRELATED).add(
								jLabel2).add(18, 18, 18).add(ButtonExaminar)
						.addContainerGap(47, Short.MAX_VALUE)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	private void ButtonExaminarMouseClicked(java.awt.event.MouseEvent evt) {
		//PopUpOpenFile.main(fachada, ".\\descriptors\\");
		
	}

	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				new FormEditar().setVisible(true);
			}
		});
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton ButtonExaminar;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JSeparator jSeparator1;

	// End of variables declaration//GEN-END:variables

	public String getFormName() {
		return formName;
	}

}